package net.ojbk.study.curriculumDesign.web.handlers.canvasmodel;

import net.ojbk.study.curriculumDesign.beans.canvasmodel.Canvas;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public interface ICanvasController {
    /**
     * 新增油画
     * @param  canvas 油画实体类
     */
    public Object setCanvas(Canvas canvas, HttpSession session);
    /**
     * 根据分类id查询油画信息
     * @param  cgid 分类id
     * @return 油画信息
     */
    public Object getCanvasBycgid(String cgid);
    /**
     * 根据cid删除油画信息
     * @param  cid 油画id
     */
    public Object delCanvas(Integer cid);
    /**
     * 把油画图片放在详细页面显示
     * @param  cid  油画id
     * @return 这个油画的信息
     */
    public Object getOnecanvas(String cid);
}
